package edu.java.texbooks.scjp.chap02.polymorphism;


public class TestPolymorphism {
    int[][]  books = new int[3][];
   
    public static void main(String[] args) {
//	Player playReference= new Player();
//	Animatable animate= playReference;
//	animate.animate();
//	
//	Object obj= playReference;
//	EmptyClass ec= new EmptyClass();
//	Animatable animate2=ec;
//	animate2.animate();
//	ec.specMethod();
//	ec.animate();
	
//	System.out.println("\n\n-----------------\n");
//	Player playerObj=new Player();
//	Animatable animate3= playerObj;
//	animate3.animate();
//	playerObj.animate();
	
//	System.out.println("\n\n-----------------\n");
//	EmptyClass ec= new EmptySillyClass();
//	ec.animate();
//	
//	EmptySillyClass escObject= new EmptySillyClass();
//	escObject.staticMethod();
//	((EmptyClass)escObject).staticMethod();
//	
//	System.out.println("\n\n-----------------\n");
//	EmptyClass ecObject= new EmptySillyClass();
//	ecObject.staticMethod();
//	ec.animate();
	
//	EmptySillyClass esc=new EmptySillyClass();
	EmptySillyClass esc= new EmptySillyClass();
	esc.staticMethod();
	EmptySillyClass.staticMethod();
	
	
    }

}
